import CryptoJS from 'crypto-js'
export const encrypt = (plaintText:any) => { 
    const CRYPTOJSKEY = 'cmbCampus0722000'; 
    const options = { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7, }; 
    const key = CryptoJS.enc.Utf8.parse(CRYPTOJSKEY); 
    const encryptedData = CryptoJS.AES.encrypt(plaintText, key, options);
    const encryptedBase64Str = encryptedData.toString(); 
    return encryptedBase64Str; 
};
